@extends('layouts.default') @section('main')
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i
                            class="icon-home"></i> 首页</a>
                <a href="{{url('user/index')}}" class="tip-bottom">用户管理</a>
                <a href="#" class="current">会员详情</a>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span9">
                    <div class="widget-box">
                        <div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i>
						</span>
                            <h5>基础信息</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <form  class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label">会员ID :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="uid" value="{{$userInfo->uid}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">会员昵称 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="nickname" value="{{$userInfo->nickname}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">姓名 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="realname" value="{{$userInfo->realname}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">当前角色 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="role" value="@if($userInfo->roleUser){{$userInfo->roleUser->role->name}}@endif" readonly="readonly" />
                                </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">状态 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="status" value="@if($userInfo->status == 1)正常@else禁用@endif" readonly="readonly"  />
                                    </div>
                                </div>
                                @if($userInfo->roleUser->role->name == '普通用户')
                                <div class="control-group">
                                    <label class="control-label">关注行业 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="profession" value="@foreach($userInfo->userCategory as  $v){{$v->category->name.'|'}}@endforeach" readonly="readonly"  />
                                    </div>
                                </div>
                                @endif
                                <div class="control-group">
                                    <label class="control-label">所在地区 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="zone_id" value="@if($userInfo->zone){{$userInfo->zone->name}}@endif" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">详细地址 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="address" value="{{$userInfo->address}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">邮箱 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="email" value="{{$userInfo->email}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">邮编 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="zipcode" value="{{$userInfo->zipcode}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">个人名片 :</label>
                                    <div class="controls">
                                        <img  src="{{getImage($userInfo->userInfo->business_card)}}">
                                    </div>
                                </div>
                                @if($userInfo->roleUser->role->name == '投资人' ||$userInfo->roleUser->role->name == '创客空间')
                                <div class="widget-title">
                                    <span class="icon"> <i class="icon-align-justify"></i></span>
                                    <h5>投资信息</h5>
                                </div>
                                    <div class="control-group">
                                        <label class="control-label">个性签名 :</label>
                                        <div class="controls">
                                            <input type="text" class="span11" name="sign" value="{{$userInfo->userInfo->sign}}" readonly="readonly"  />
                                        </div>
                                    </div>
                                <div class="control-group">
                                    <label class="control-label">一句话简介 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="introduction" value="{{$userInfo->userInfo->introduction}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">主投方向 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="profession" value="@foreach($userInfo->userInvestCategory as  $v){{$v->category->name.'|'}}@endforeach" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">投资经历 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="username" value="{{$userInfo->userInfo->investCase}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">投资机构名 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="institution_name" value="{{$userInfo->userInfo->institution_name}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">职务 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="job" value="{{$userInfo->userInfo->job}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">电话 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="tel" value="{{$userInfo->userInfo->tel}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">传真 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="fax" value="{{$userInfo->userInfo->fax}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构地址 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="office_address" value="{{$userInfo->userInfo->office_address}}" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构邮编 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="office_zipcode" value="{{$userInfo->userInfo->office_zipcode}}"  readonly="readonly" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">直通车状态 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="isZtc" value="@if($userInfo->is_ztc == 1)已开通@else未开通@endif" readonly="readonly"  />
                                    </div>
                                </div>
                                @endif
                                <div class="form-actions">
                                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                </div>
                            </form>
                            {{--<a href="{{url('user/edit?id='.$userInfo->uid)}}" target="_blank"><button class="btn btn-success">编辑</button></a>--}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop